<?php if (!defined('CMS')) die;
$c = Eleanor::$Cache->Get('middle_slider'. Language::$main);
if ($c === false) {
    $out= $c = $res = '';
    preg_match_all('#<p>(.+?)</p>#i', (string)$CONFIG['text'], $out);
    foreach($out[1] as $pic) {
        $c .= '<li>'. $pic .'</li>';
    }
    Eleanor::$Cache->Put('middle_slider'. Language::$main, $c);
}
echo $c;